package com.sino.operation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sino.operation.entity.BizHint;
import com.sino.operation.mapper.BizHintMapper;
import com.sino.operation.service.BizHintService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 岗位提示表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-07
 */
@Service
public class BizHintServiceImpl extends ServiceImpl<BizHintMapper, BizHint> implements BizHintService {
    @Autowired(required = false)
    private BizHintMapper bizHintMapper;

    @Override
    public IPage<BizHint> selectList(Map<String, String> map) {
        QueryWrapper<BizHint> wrapper = new QueryWrapper<>();
        return bizHintMapper.selectPage(new Page<>(Integer.parseInt(map.get("current")), Integer.parseInt(map.get("size"))), wrapper);
    }
}
